package com.lhr.common.util;

import java.io.IOException;
import java.util.Properties;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class PropertiesUtil {

	private static Log log = LogFactory.getLog(PropertiesUtil.class);

	public static Properties getProperties(String fileName) {
		try {
			Properties properties = new Properties();
			properties.load(PropertiesUtil.class.getResourceAsStream(fileName));
			return properties;
		} catch (IOException e) {
			log.error("read "+fileName+" error, " + e.getMessage(), e);
			return null;
		}
	}
}
